<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\Personinfo */

$this->title = $model->stu_id;
$this->params['breadcrumbs'][] = ['label' => '个人信息', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="personinfo-view">


    <p>
        <?= Html::a('修改', ['update', 'id' => $model->stu_id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->stu_id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => '你确定要删除这条记录吗？',
                'method' => 'post',
            ],
        ]) ?>
    </p>
 <?php $sex=($model->sex==0)?'男':'女';?> 
    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'stu_id',
            'stu_name',
          //  'password_hash',
            [                     
            'label' => '性别',
            'value' => $sex,
        ],
            'card_id',
            'used_name',
            'nation',
            'political',
            'address',
            'religion',
            'height',
            'maritial_status',
            'blood_type',
            'telephone',
            'qq',
            'blank',
            'blank_num',

        ],
    ]) ?>

</div>
